package com.gz.common;


import com.gz.common.model.Attachment;
import com.gz.common.model.ContentAttachment;
import com.gz.common.model.MobileApp;
import com.gz.utils.FileUtil;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.upload.UploadFile;

import java.util.Date;
import java.util.List;

/**
 * Created by gongzhen on 2016/12/1.
 */
public class APPService {
    private static APPService service;

    private APPService() {
    }

    public static APPService getService() {
        if (service == null) {
            service = new APPService();
        }
        return service;
    }

    public MobileApp getVersionByPlatForm(String platForm) {
        MobileApp mobileApp = MobileApp.dao.findFirst("SELECT * FROM tb_app WHERE platform=? order by create_time desc", platForm);
        return mobileApp;
    }


}
